package com.draw.cli.webclient;

/**
 * http://jaitechwriteups.blogspot.fr/2007/04/webservice-client-using-dynamic-proxy.html
 */

import java.net.MalformedURLException;

import javax.xml.ws.Service;
import javax.xml.ws.WebServiceException;

import com.draw.webinterface.UserInterface;

public class UserClient extends Client {
	static UserInterface userInterface = null;

	public static UserInterface getInstance() throws MalformedURLException, WebServiceException {
		if (userInterface == null || Client.isConfigChanged()) {
			Service service = getService("UserService");
			userInterface = service.getPort(UserInterface.class);
		}
		return userInterface;
	}
}
